FROM barnett/nextcloud-runtime:0.2

ADD . /usr/src/we7
RUN mv /usr/src/we7/entrypoint.sh /entrypoint.sh; \
    mv /usr/src/we7/upgrade.exclude /upgrade.exclude; \
    chmod +x /entrypoint.sh;
    
VOLUME /var/www/html
ENV TZ=Asia/Shanghai
ENV LANG="zh_CN.UTF-8"
ENV LANGUAGE="zh_CN:zh"
ENTRYPOINT ["/entrypoint.sh"]
CMD ["apache2-foreground"]